/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年8月3日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package test.net;

import java.net.Socket;

/**
 * @Type ClientSocketBlocking
 * @Desc
 * @author 52489
 * @date 2019年8月3日
 * @Version V1.0
 */
public class ClientSocketBlocking {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1", 8888);
            socket.getOutputStream().write("1111".getBytes());
            Thread.sleep(30000);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
